import { S } from '../../s';
import { IPSDEFSearchMode } from './ipsdefsearch-mode';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDEFSearchModeImpl
  extends PSModelObjectImpl
  implements IPSDEFSearchMode
{
  get codeName(): string {
    return this.M.codeName;
  }

  get itemTag(): string {
    return this.M.itemTag;
  }

  get itemTag2(): string {
    return this.M.itemTag2;
  }

  get stdDataType():
    | 0
    | 1
    | 2
    | 3
    | 4
    | 5
    | 6
    | 7
    | 8
    | 9
    | 10
    | 11
    | 12
    | 13
    | 14
    | 15
    | 16
    | 17
    | 18
    | 19
    | 20
    | 21
    | 22
    | 23
    | 24
    | 25
    | 26
    | 27
    | 28
    | 29 {
    return this.M.stdDataType;
  }

  get valueFormat(): string {
    return this.M.valueFormat;
  }

  get valueFunc(): string {
    return this.M.valueFunc;
  }

  get valueOP(): string {
    return this.M.valueOP;
  }

  get valueSeparator(): string {
    return this.M.valueSeparator;
  }

  get array(): boolean {
    return this.M.array != null ? this.M.array : false;
  }

  get default(): boolean {
    return this.M.default != null ? this.M.default : false;
  }
  get cls(): string {
    return 'PSDEFSearchModeImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._1c4) return true;
    return super.instanceof(cls);
  }
}
